package com.jgp.attachment.controller;

import com.jgp.sys.controller.JGPBackController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/25
 */
@CrossOrigin
@Controller
@RequestMapping("/attachment/docController")
public class DocController extends JGPBackController {

    @RequestMapping(value = "uploadWin")
    public String upload(String objectId,String objectType,String objectParams,String allow,String totalNum,String totalSize,String singleSize,String disabled, Model model){
        model.addAttribute("objectId",objectId);
        model.addAttribute("objectType",objectType);
        model.addAttribute("allow",allow);
        model.addAttribute("totalNum",totalNum);
        model.addAttribute("totalSize",totalSize);
        model.addAttribute("singleSize",singleSize);
        model.addAttribute("disabled",disabled);
        model.addAttribute("objectParams",objectParams);
        return page("upload");
    }

    @RequestMapping(value = "viewer")
    public String viewer(String objectId,String objectType,String allow,String totalNum, Model model){
        return page("upload");
    }
    
    @RequestMapping(value = "showDocMgr")
    public String showDocMgr(){
        return  page("showDocMgr");
    }
}
